<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<meta name="author" content="wangyupeng">
		<title>维护个人客户</title>
		<script language="javascript" src="../script/common.js" type="text/javascript"></script>
		<script type="text/javascript">
	var qt = null;				//数据表格对象
	var opts = {};
	var radio;
	var pageType;
	function load(){
		Eui.showNavigation();
		
		var cOrg = Common.cOrg()
		$("form").currentOrg.value = cOrg.id;
		$("form").currentOrgLevel.value = cOrg.orgLevel;
		
		setPages(["listview","detview"]);//切换页面
		//初始化
		Common.initDict("ocurrentLevel","customer_level","全 部");
		
		var columns = []						
		columns[2] = {render:function(v,r){
			return "<a href=# onclick=\"showUser('"+r[0]+"',true);return false;\">"+v+"<\/a>"
		}}
		columns[8] = {title:"操作",width:"12%",order:false,render:function(v,r){
			return "<a href=# onclick=showUser('"+r[0]+"')>编辑<\/a>";
		}}	
		qt = new QueryTable("acc_person_manage","form","datalist",columns);	
	}

	//显示静态明细
	function showUser(id,view){					//编辑页面
		var opts = {isView:view}
		switchPage("detview");
		CardMgnt.userDetail.show("detview",id,null,opts)
	}
	
		</script>
	</head>
    <body onload="load()">
		<!--页面导航-->
		<div class="nav" id="navdiv"><div id="nav">&nbsp;</div></div>
		<!--查询静态页面部分-->
		<div id="listview">	
			<!--查询条件form-->
			<div class="searchForm">
				<form id="form" name="form">
					<input type="hidden" name="currentOrg">
					<input type="hidden" name="currentOrgLevel">
					<input type="hidden" name="personal">
					<input type="hidden" name="cardUserType">
					<input type="hidden" name="currentCard">
					<input type="hidden" name="cardUserStatus">
					
					<table cellSpacing="0" cellPadding="4" width="100%" border="0">
						<tr>
							<td><label>客户名称</label> <input type="text" name="oname"></td>
							<td><label>证件号码</label> <input type="text" name="oidno" onblur="checkV(this,'certificateNo')"></td>
							<td><label>地区名称</label> <input type="text"  name="ooname"></td>
						</tr><tr>
							<td><label>客户级别</label> <select id="ocurrentLevel"><option></option></select></td>			
							<td>&nbsp;</td>			
							<td><button type="button" onclick="qt.showTable()">查 询</button></td>
						</tr>
					</table>
				</form>
			</div>
			<div id="datalist"></div>
		</div>
		<div id="detview" style="display:none;">
		</div>
	</body>
</html>